/*
 ============================================================================
 Name		: TheWebDocument.cpp
 Author	  : Vitaly Yevtushenko
 Copyright   : Licensed under GPL V2
 Description : CTheWebDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "TheWebAppUi.h"
#include "TheWebDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CTheWebDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CTheWebDocument* CTheWebDocument::NewL(CEikApplication& aApp)
	{
	CTheWebDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CTheWebDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CTheWebDocument* CTheWebDocument::NewLC(CEikApplication& aApp)
	{
	CTheWebDocument* self = new (ELeave) CTheWebDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CTheWebDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CTheWebDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CTheWebDocument::CTheWebDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CTheWebDocument::CTheWebDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CTheWebDocument::~CTheWebDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CTheWebDocument::~CTheWebDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CTheWebDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CTheWebDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CTheWebAppUi;
	}

// End of File
